Skip to content

Conversation

babblebey
Copy link
Member

This PR converts the plugin to ESM only.

Related to semantic-release/semantic-release#2133

BREAKING CHANGE: @semantic-release/git is now a native ES Module. It has named exports for each plugin hook (verifyConditions, prepare)

This commit updates the code to use ES6 module syntax by replacing the `require` statements with `import` statements. This improves the code readability and maintainability.

Refactor the `index.js` file to use ES6 module syntax

Refactor the `lib/definitions/errors.js` file to use ES6 module syntax

Refactor the `lib/get-error.js` file to use ES6 module syntax

Refactor the `lib/git.js` file to use ES6 module syntax

Refactor the `lib/prepare.js` file to use ES6 module syntax

Refactor the `lib/resolve-config.js` file to use ES6 module syntax

Refactor the `lib/verify.js` file to use ES6 module syntax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant